from django.shortcuts import render
from django.http import HttpResponse

# Create your views here.
def setsession(request):
    '''保存session'''

    request.session['itcast111'] = 'python111'

    return HttpResponse('setsession')



def getsession(request):
    '''读取session'''

    value = request.session['itcast111']

    print(value)

    return HttpResponse('getsession')

